<?php
namespace Common\Model;
use Think\Model;

class MessageWallModel extends VRUserModel
{
    //显示留言墙列表
    function getList($pageStart, $pageSize){
        $res['count'] = $this->count();
        $res['data'] = $this->limit($pageStart, $pageSize)->Order("create_time desc")->select();
        
        return $res;
    }
    //添加 URL
    function edit($id,$data){
        $res = $this->where("id = $id")->data($data)->save();
//echo M()->getLastSql();die;
        return $res;
    }
    
    //获取 单个 留言墙 内容
    function getOne($id){
        $info = $this->where("id = $id")->find();
        return $info;
    }
    
    
}